﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoGeneIdentifyNo.aspx.cs" Inherits="WebCustomUserControls_AutoGeneIdentifyNo" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>识别码录入</title>
    <base target="_self"/>
    <script language="javascript" src="../App_script/index.js"></script>
    <script language="javascript" src="../App_script/InputValidate.js"></script>
    <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
    <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>        
</head>
<body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0">
    <form id="QueryPayment" runat="server">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 406px; height: 112px">
            <tr>
                <td align="left" valign="top" style="width: 440px; height: 202px">
                    <div style="overflow: auto; width: 430px; height: 190px; border-right: #99ccff 1px solid; border-top: #99ccff 1px solid; border-left: #99ccff 1px solid; border-bottom: #99ccff 1px solid;">
                        <table width="410" height="190" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td style="height: 20px">
                                    <table bgcolor="#CED3E2" width="410" height="20" cellpadding="0" cellspacing="0" class="text" border="1" style="border-collapse: collapse">
                                        <tr>
                                            <td align="center" style="font-weight: bold; color: #183184; width: 60px;">单选</td>
                                            <td align="center" style="font-weight: bold; color: #183184">识别码</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="170" valign="top">
                                    <asp:DataGrid ID="dgrdIdentifyResult" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="10" ShowHeader="False" Width="410" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" GridLines="None" OnItemDataBound="dgrdIdentifyResult_ItemDataBound">                                                
                                        <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                        <Columns>
                                            <asp:TemplateColumn>
                                                <ItemTemplate>                                                               
                                                    <table width="410" height="20" cellpadding="0" cellspacing="0" class="text" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                                        <tr onfocusin="this.bgColor='#D3E2D7'" onfocusout="this.bgColor=''" onclick="txtUpdateIdentifyNo.value=hidCurIdenNo.value='<%# DataBinder.Eval(Container.DataItem, "identifyNo").ToString().Trim()%>'">
                                                            <td width="60" align="center"><asp:label ID="chkRsSelect" style="cursor:hand" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "identifyNo")%>'/></td>                                                                        
                                                            <td>
                                                                <asp:textbox ID="txt1" Text='<%# DataBinder.Eval(Container.DataItem, "identifyNo")%>'  runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="90" />
                                                                <asp:Label ID="labHidIdentifyNo" runat=server Text='<%# DataBinder.Eval(Container.DataItem, "identifyNo")%>' Visible=false></asp:Label>  
                                                            </td>                                                                                                                                            
                                                        </tr>
                                                    </table>                                                                
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                        <AlternatingItemStyle BackColor="#EEEFF2" />
                                    </asp:DataGrid>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>                            
            </tr>
            <tr>
                <td height="20" align="right" valign="top" style="width: 460px">
                    <asp:Label ID="lblQueryRsCounts" runat="server" CssClass="text"/>
                    <asp:Label ID="lblQueryPageCounts" runat="server" CssClass="text"/>
                    <asp:Label ID="lblQueryCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                    <asp:linkbutton ID="lbtnQueryFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                    <asp:linkbutton ID="lbtnQueryPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                    <asp:linkbutton ID="lbtnQueryNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                    <asp:linkbutton ID="lbtnQueryEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" width="90%" height="20" border="0" class="text">
                        <tr>
                            <td align="left">可输入的识别码个数：<asp:Label ID="labCurQty" runat=server></asp:Label></td>                            
                            <td align="left">已输入的识别码个数：<asp:Label ID="labAlreadyQty" runat=server></asp:Label></td>                            
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 39px">
                    <table cellpadding="0" cellspacing="0" width="90%" height="20" border="0" class="text">
                        <tr>
                            <td style="width: 85px; height: 20px" align="left">
                                <asp:RadioButton ID="rdoSingle" runat="server" Height="3px" Width="84px" GroupName="rdoSingle" OnCheckedChanged="rdoSingle_CheckedChanged" Text="单条录入：" Checked="True" AutoPostBack="True" />
                            </td>
                            <td style="width: 231px; height: 20px" align="left">
                                <asp:TextBox ID="txtSingleNo" runat="server" CssClass="text" Width="214px"></asp:TextBox>
                            </td>
                            <td style="height: 20px" align="left">
                                <asp:Button ID="btnContinue" runat="server" Text="继  续" CssClass="button"  OnClientClick="if(txtSingleNo.value == '') {alert('识别码不能为空！');txtSingleNo.focus();return false;}" OnClick="btnContinue_Click" Width="60px" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" width="90%" height="20" border="0" class="text">
                        <tr>
                            <td align="left"><asp:RadioButton ID="rdoBatch" runat="server" GroupName="rdoSingle" Text="批量录入：" OnCheckedChanged="rdoBatch_CheckedChanged" AutoPostBack="True"/></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" width="90%" height="50" border="0" class="text">
                        <tr>
                            <td align="right" style="width: 85px">前&nbsp; &nbsp; &nbsp;&nbsp;缀：</td>
                            <td align="left" style="width: 79px"><asp:TextBox ID="txtPrefix" runat="server" Width="70px" CssClass="text" Enabled=false></asp:TextBox></td>
                            <td align="right" style="width: 65px">后 &nbsp; &nbsp;缀：</td>
                            <td align="left" style="width: 86px"><asp:TextBox ID="txtSuffix" runat="server" Width="70px" CssClass="text" Enabled=false></asp:TextBox></td>
                            <td align="left"></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 85px">开始序号：</td>
                            <td align="left" style="width: 79px"><asp:TextBox ID="txtBeginNo" runat="server" Width="70px"  CssClass="text" Enabled=false onblur="CheckNumber(this.id,this.value);return false;" OnTextChanged="txtBeginNo_TextChanged" AutoPostBack=true></asp:TextBox></td>
                            <td align="right" style="width: 65px">结束序号：</td>
                            <td align="left" style="width: 86px"><asp:TextBox ID="txtEndNo" runat="server" Width="70px" CssClass="text" Enabled=false></asp:TextBox></td>
                            <td align="left"><asp:Button ID="btnGeneration" runat="server" OnClick="btnGeneration_Click" Text="生  成" CssClass="button"  Width="60px"  OnClientClick="if(txtBeginNo.value == '' || txtEndNo.value == ''){alert('序号不能为空！');txtBeginNo.focus();return false;}"/></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" width="90%" height="30" border="0" class="text">
                        <tr>
                            <td align="right" style="width: 85px">修 &nbsp;&nbsp; 改：</td>
                            <td align="left" style="width: 144px"><asp:TextBox ID="txtUpdateIdentifyNo" runat="server" Width="136px" CssClass="text" onblur="if(txtUpdateIdentifyNo.value != ''){btnUpdate.disabled=false}"></asp:TextBox></td>
                            <td align="left"><asp:Button ID="btnUpdate" runat="server" Text="修  改" CssClass="button" OnClientClick="if(txtUpdateIdentifyNo.value == ''){alert('请选择一个识别码号！');return false;}" OnClick="btnUpdate_Click" Width="60px" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" width="90%" height="40" border="0" class="text">
                        <tr>
                            <td><asp:Button ID="btnClear" runat="server" Text="清空" OnClick="btnClear_Click" Width="50px"/></td>
                            <td><asp:Button ID="btnClearCur" runat="server" Text="清空本页" Width="63px" /></td>
                            <td><asp:Button ID="btnDel" runat="server" Text="作废" OnClick="btnDel_Click" Width="50px" /></td>
                            <td><asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" Text="确定" Width="50px"/></td>
                            <td><asp:Button ID="btnCanel" runat="server" Text="取消"  OnClick="btnCanel_Click" OnClientClick="window.close()" Width="50px"/></td>                            
                        </tr>
                    </table>
                </td>
            </tr>
        </table> 
       <asp:Label ID="labhidPara" runat=server Visible=false></asp:Label>
       <asp:Label ID="labMessage" runat=server ></asp:Label>
       <asp:Label ID="LabEndNo" runat=server Width="86px" ></asp:Label>
       <input ID="hidCurIdenNo" runat="server" style="display:none; width: 1px;"/>
       <input ID="labQty" runat="server" style="display:none; width: 1px;"/>
    </form>
</body>
</html>
